import request from './service'


export const fetchEdit =async (data:any)=>{
    const res=  await request.post('/goods/edit',data)
    return res
  }
export const fetchGet =async (params:any)=>{
    const res=  await request.get('/users/list',params)
    return res
  }
export const doctorGet=async (params:any)=>{
    const res=  await request.get('/infomationcenter/departmentline',params)
    return res  
  }
export const newsGet=async (params:any)=>{
    const res=  await request.get('/infomationcenter/news',params)
    return res  
  }
export const departmentGet=async (params:any)=>{
    const res=  await request.get('/department/list',params)
    return res  
  }
  export const DeleteGet=async (params:any)=>{
    const res=  await request.get('/department/del',params)
    return res  
  }
  export const doctorAllGet=async (params:any)=>{
    const res=  await request.get('/doctor/doctornames',params)
    return res  
  }
  export const EditGet=async (params:any)=>{
    const res=  await request.get('/department/edit',params)
    return res  
  }
  export const queryGet=async (params:any)=>{
    const res=  await request.get('/department/search',params)
    return res  
  }
  export const DeleteAllGet=async (params:any)=>{
    const res=  await request.get('/department/batchdel',params)
    return res  
  }
  export const AddGet=async (params:any)=>{
    const res=  await request.get('/department/add',params)
    return res  
  }
  export const AccountGet=async (params:any)=>{
    const res=  await request.get('/users/search',params)
    return res  
  }
  
  export const AccountDeleteGet=async (params:any)=>{
    const res=  await request.get('/users/del',params)
    return res  
  }
 
  export const departnamesGet=async (params:any)=>{
    const res=  await request.get('/department/departnames',params)
    return res  
  }
  export const userGet=async (params:any)=>{
    const res=  await request.get('/users/list',params)
    return res  
  }
  export const userItem=async (params:any)=>{
    const res=  await request.get('/users/getbyid',params)
    return res  
  }
  export const UserEdit=async (params:any)=>{
    const res=  await request.get('/users/edit',params)
    return res  
  }
  export const UserDelete =async (data:any)=>{
    const res=  await request.post('/users/batchdel',data)
    return res
  }
  export const userAdd =async (data:any)=>{
    const res=  await request.post('/users/add',data)
    return res
  }
 
 
 







